package com.dylan.channel.v10;

import com.dylan.channel.v10.channel.NioSocketChannel;

import java.net.InetSocketAddress;
import java.util.logging.Logger;

public class NettyClientV10 {
    private static Logger logger = Logger.getLogger(NettyClientV10.class.getName());

    public static void main(String[] args) throws InterruptedException {

        NioEventLoopGroup group = new NioEventLoopGroup(1);
        BootStrap bootStrap = new BootStrap();
        bootStrap.group(group)
                .channel(NioSocketChannel.class)
                .connect(new InetSocketAddress(8086)).sync();


        System.out.println("客户端连接成功!...");
    }
}
